package com.gzq.service;

import com.gzq.entity.IndexPropaganda;
import com.gzq.repository.PropagandaDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IndexPropagandaService {
    @Resource
    PropagandaDao propagandaDao;
    public IndexPropaganda findAll(long id){
        return  propagandaDao.findById(id);
    }
    public List<IndexPropaganda> findAllText(){
        return  propagandaDao.findAll();
    }

}
